obj-m := kobject_uevent_env.o
KERNELDIR ?=/lib/modules/$(shell uname -r)/build
PWD :=$(shell pwd)

default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
	find  -name  "*.cmd" | xargs rm -rf
	find  -name  "*.o" | xargs rm -rf
	find  -name  "*.mod.c" | xargs rm -rf
	find  -name  "*.swp" | xargs rm -rf
	find  -name  "*~" | xargs rm -rf
	rm .cache.mk
	rm modules.order
	rm Module.symvers 
